import { request } from 'ngfe-request'

// 用户查询
export async function getAssetAccountList(params: any) {
  return request('/list', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'AccountSVC',
        stdIntfcInd: 'listAssetAcct',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        custType: "C",
        ...params,
      },
    },

  })
}

// 操作 冻结
export async function freezeAssetAccount(params: any) {
  return request('/freeze', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'FreezeSVC',
        stdIntfcInd: 'freezeAccont',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    },

  })
}
// 操作 解冻
export async function unFreezeAssetAccount(params: any) {
  return request('/unfreeze', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'FreezeSVC',
        stdIntfcInd: 'unfreezeAccount',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    },

  })
}